package com.yami.shop.bean.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("tz_check_account")
public class CheckAccount implements Serializable {
    private static final long serialVersionUID = 5394717222999196127L;
    /**
     * 主键id
     */
    @TableId
    private Long accountId;

    /**
     * 订单ID
     */
    private String orderNumber;

    /**
     * 入账时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date time;

    /**
     * 入账类型
     */
    private String type;

    /**
     * 入账金额
     */
    private Double payAmount;

    /**
     * 商铺id
     */
    private Long shopid;

    /**
     * 该订单返利金额
     */
    private Double rebateMoney;

    /**
     * 手续费
     */
    private Double service_fee;

    /**
     * 可提现金额
     */
    private Double withdrawalAmount;

    /**
     * 备注
     */
    private String remark;

    /**
     * 开始时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 结束时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /**
     * 快递费用
     */
    private double deliveryPrice;

    /**
     * 合计金额
     */
    @TableField(exist = false)
    private double rebateMoneyAmount;

    /**
     * 推广费用
     */
    private double  promotePrice;
}
